package com.chenyue.cm.match.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author Lbx
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "MyMatch对象", description = "VIEW")
public class MyMatch extends Model<MyMatch> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "三方机构头像")
    private String headImg;

    @ApiModelProperty(value = "赛事名称")
    private String name;

    @ApiModelProperty(value = "赛事描述")
    private String description;

    @ApiModelProperty(value = "赛事分类")
    private Integer type;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "直播记录id")
    private Integer liveRecordId;

    @ApiModelProperty(value = "详细地址")
    private String address;

    private Integer id;

    @ApiModelProperty(value = "三方机构名称")
    private String userName;

    @ApiModelProperty(value = "主播名称")
    private String liveName;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "赛事id")
    private Integer matchId;

    @ApiModelProperty(value = "赛程id")
    private Integer formatId;

    @ApiModelProperty(value = "支付状态0待支付1已支付")
    private Integer payState;

    @ApiModelProperty(value = "报名价格")
    private Double signPrice;

    @ApiModelProperty(value = "审核状态 0待审核1通过2拒绝")
    private Integer state;

    @ApiModelProperty(value = "参赛人数")
    private Integer signCount;

    @ApiModelProperty(value = "参赛范围（1单人/2团体）")
    private String matchGroup;

    @ApiModelProperty(value = "订单编号")
    private String orderNum;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ct;

    @ApiModelProperty(value = "商品售价")
    private Double productPrice;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "付费方式 0免费 1纯金币 2纯钱")
    private Integer payType;

    @ApiModelProperty(value = "审核备注")
    private String remark;

    @ApiModelProperty(value = "进行顺序")
    private Integer arrangeOrder;

    @ApiModelProperty(value = "1是参赛了 2是待参赛")
    private Integer isConcat;

    @ApiModelProperty(value = "参赛回放")
    private String videoUrl;

    @ApiModelProperty(value = "主播id")
    private Integer liveId;

    @ApiModelProperty(value = "是否需要实名 1需要 2不需要")
    private Integer needVerify;

    @ApiModelProperty(value = "参赛时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date enterMatchTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
